package Excercise;

public class Ex01_Q21 {

	public static void main(String[] args) {
		
		int salary = 17500;
		boolean isMarried = false;
		float tax = 0.0F;
		
		if(isMarried == true){        //기혼인 경우
		 if(salary < 3000) tax = salary - (salary*0.1F);
		 else if(salary >= 6000) tax = salary * 0.25F;
		}else if(isMarried == false){ //미혼인 경우
			if(salary < 3000) tax = salary*0.1f;
			else if (salary >= 3000) tax = salary * 0.25F;
			
		}
		System.out.println(isMarried);
		System.out.println(salary);

	}

}
